import request from '@/utils/request'

/**
 *
 * @param {*} query
 * @desc 权限管理
 */
export const getCompanyList = query => {
  return request({
    url:'/oa/company/list',
    method: 'get',
    params: query
  })
}

//编辑公司
export const editCompany = data => {
  return request({
    url:'/oa/company/edit',
    method: 'post',
    data,
  })
}

//删除公司
export const delCompany = data => {
  return request({
    url:'/oa/company/del',
    method: 'post',
    data,
  })
}

//编辑公司
export const addCompanyData = data => {
  return request({
    url:'/oa/company/add',
    method: 'post',
    data,
  })
}
